<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<div align="right">
		<a href="sec/buy?type=showcart" method="get">${user.username}</a>
	</div>
	<div>
		<table>
			<tr>
				<c:forEach items="${booklist}" var="book"  varStatus="index">
				<td>
				<dl>
					<dt><img src="${book.bookpath }" alt="${book.bookname }" title="click buy to get it " /></dt>
					<dt>${book.bookname }</dt>
					<dt><a href="sec/buy?type=buy&id=${book.id }&name=${book.bookname}">buy</a></dt>
				</dl>
				<c:if test="${index.count%5==0}"><p/></c:if>
				</td>
				</c:forEach>
			</tr> 
		</table>
	
	</div>
</body>
</html>